<template>
  <view>
    <rich-text :nodes="content"></rich-text>
  </view>
</template>

<script>
export default {
  data() {
    return {
      type:0,
      content:""
    };
  },
  onLoad(op) {
    this.type = op.type

    uni.setNavigationBarTitle({
      title:304==this.type?'隐私协议':305==this.type?'用户协议':''
    })

    this.$u.api.getProtocal(this.type).then(res=>{
      this.content = res
    })
  },
}
</script>

<style lang="scss">

</style>
